package cn.lccabc.demo.service.impl;

import cn.lccabc.demo.dao.UserRepository;
import cn.lccabc.demo.domain.User;
import cn.lccabc.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: shiro-demo
 * @description:
 * @author: LiCC
 * @create: 2020-01-13 22:33
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public List<User> getAllUserInfo() {
        return userRepository.findAll();
    }
}
